local rolely_minyou = fk.CreateSkill {
    name = "rolely_minyou",
    tags = { Skill.Compulsory }
}
Fk:loadTranslationTable {
    ["rolely_minyou"] = "民佑",
    [":rolely_minyou"] = "锁定技，当你成为其他角色使用牌的目标后，你进行一次判定，若判定牌与使用的牌花色相同，获得其使用的牌并取消之。",

    ["$rolely_minyou1"] = "袭击雷赋，汝等难逃！",
    ["$rolely_minyou2"] = "牵雷绝电，一击千军！",
}
rolely_minyou:addEffect(fk.TargetConfirmed, {
    anim_type = "defensive",
    can_trigger = function(self, event, target, player, data)
        return target == player and player:hasSkill(rolely_minyou.name) and
            data.from ~= player
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        local card = room:getCardsFromPileByRule(".")[1]
        player:showCards(card)
        room:delay(600)
        local id = Fk:getCardById(card)
        if id.suit == data.card.suit then
            room:obtainCard(player, data.card, false, fk.ReasonPrey, player, rolely_minyou.name)
            data.use.nullifiedTargets = data.use.nullifiedTargets or {}
            table.insertIfNeed(data.use.nullifiedTargets, player)
        end
    end,
})
return rolely_minyou
